package com.brillilab.domain.vo.lab;

import com.brillilab.domain.enums.lab.LabMemberPowerEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;


/**
 * 实验室成员权限VO对象
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class LabMemberPowerVo implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * 实验室成员ID
     */
    private Long labMemberId;

    /**
     * 实验室ID
     */
    private Long labId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 用户手机号
     */
    private String mobile;

    /**
     * 权限
     */
    private String power;

    public String getPowerName() {
        return LabMemberPowerEnum.Power.getKey(this.power);
    }
}
